package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;

import java.util.List;
import java.util.Map;

public interface ReservationService {
    Long getCancelledReservationCount();

    List<Map<String, Object>> countByTime(Long time);

    void addReservation(ReservationDto reservationDto);

    PageResponse<ReservationVo> selectByPage(Integer pageNum, Integer pageSize, Integer status);

    void cancleReservation(Long id);
}
